package com.neusoft.mapper;

import com.neusoft.domain.OrderDetailet;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDetailetDao {
//    @Insert("insert into orderdetailet(orderId,foodId,quantity) values(#{orderId},#{foodId},#{quantity})")
    void saveOrderDetailetBatch(@Param("list") List<OrderDetailet> list);
    @Select("select * from orderdetailet where orderId=#{orderId}")
    List<OrderDetailet> listOrderDetailetByOrderId(Integer orderId);
}
